package com.sh.constant;

/**
 * 权限相关通用常量
 */
public class SecurityConstants
{

    /**
     * 授权信息字段
     */
//    public static final String AUTHORIZATION_HEADER = "Authorization";

    /**
     * TOKEN 前缀
     */
    public static String TOKEN_PREFIX = "Bearer";

    /**
     * TOKEN secret
     */
    public static String TOKEN_SECRET = "";

    /**
     * 用户ID字段
     */
    public static final String DETAILS_USER_ID = "user_id";

    /**
     * 用户名字段
     */
    public static final String DETAILS_USER_NAME = "user_name";

    /**
     * 用戶账号
     * */
    public static final String DETAILS_USER_CODE= "user_code";

    /**
     * 用户标识
     */
    public static final String USER_KEY = "user_key";

    /**
     * 管理员标识
     * */
    public static final String ADMIN = "admin";

    /**
     * 请求来源
     */
    public static final String FROM_SOURCE = "from-source";

    /**
     * 内部请求
     */
    public static final String INNER = "inner";

}
